package com.core.zyyz.pcmc.domain;


import java.util.Date;
import com.core.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.core.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 角色人员关系对象 pcmc_role_user
 *
 * @author core
 * @date 2024-10-16
 */
public class PcmcRoleUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 角色编码 */
    private String roleCode;

    /** 操作员编号 */
    private String userCode;

    /** 说明 */
    @Excel(name = "说明")
    private String DESCRIPTION;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String isEnabled = "1";

    /** 自 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "自", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDateActive;

    /** 至 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "至", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDateActive;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 最后更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateDate;

    /** 最后更新用户编码 */
    @Excel(name = "最后更新用户编码")
    private String lastUpdateBy;

    public void setRoleCode(String roleCode)
    {
        this.roleCode = roleCode;
    }

    public String getRoleCode()
    {
        return roleCode;
    }
    public void setUserCode(String userCode)
    {
        this.userCode = userCode;
    }

    public String getUserCode()
    {
        return userCode;
    }
    public void setDESCRIPTION(String DESCRIPTION)
    {
        this.DESCRIPTION = DESCRIPTION;
    }

    public String getDESCRIPTION()
    {
        return DESCRIPTION;
    }
    public void setIsEnabled(String isEnabled)
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled()
    {
        return isEnabled;
    }
    public void setStartDateActive(Date startDateActive)
    {
        this.startDateActive = startDateActive;
    }

    public Date getStartDateActive()
    {
        return startDateActive;
    }
    public void setEndDateActive(Date endDateActive)
    {
        this.endDateActive = endDateActive;
    }

    public Date getEndDateActive()
    {
        return endDateActive;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setLastUpdateDate(Date lastUpdateDate)
    {
        this.lastUpdateDate = lastUpdateDate;
    }

    public Date getLastUpdateDate()
    {
        return lastUpdateDate;
    }
    public void setLastUpdateBy(String lastUpdateBy)
    {
        this.lastUpdateBy = lastUpdateBy;
    }

    public String getLastUpdateBy()
    {
        return lastUpdateBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("roleCode", getRoleCode())
                .append("userCode", getUserCode())
                .append("DESCRIPTION", getDESCRIPTION())
                .append("isEnabled", getIsEnabled())
                .append("startDateActive", getStartDateActive())
                .append("endDateActive", getEndDateActive())
                .append("createDate", getCreateDate())
                .append("createBy", getCreateBy())
                .append("lastUpdateDate", getLastUpdateDate())
                .append("lastUpdateBy", getLastUpdateBy())
                .toString();
    }

    //dto
    /** 选取的角色信息 **/
    private String[] roleCodes;
    /** 选取的用户信息 **/
    private String[] userCodes;

    public String[] getRoleCodes() {
        return roleCodes;
    }

    public void setRoleCodes(String[] roleCodes) {
        this.roleCodes = roleCodes;
    }

    public String[] getUserCodes() {
        return userCodes;
    }

    public void setUserCodes(String[] userCodes) {
        this.userCodes = userCodes;
    }
}
